﻿using System;
using RpcHelper.Validate;
namespace Wedonek.RpcStore.Service.Model
{
        public class IdentitySetParam
        {
                /// <summary>
                /// 应用名
                /// </summary>
                [NullValidate("rpc.identity.name.null")]
                [LenValidate ("rpc.identity.name.len",2,50)]
                public string AppName { get; set; }
                /// <summary>
                /// 应用说明
                /// </summary>
                [LenValidate ("rpc.identity.show.len", 0, 255)]
                public string AppShow { get; set; }
                /// <summary>
                /// 应用有效期
                /// </summary>
                [TimeValidate ("rpc.identity.effective.date.error", 1)]
                public DateTime? EffectiveDate { get; set; }
                /// <summary>
                /// 应用是否启用
                /// </summary>
                public bool IsEnable { get; set; }
        }
}
